package com.kele.system.mapper;

import com.kele.system.model.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * @Description:
 * @Author: Kele
 * @CreateDate: 2023/4/23 18:03
 * @Version:
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据用户ID查询用户权限
     * @param userId 用户ID
     * @return java.util.List<java.lang.String>
     * @author: Kele
     * @date 2023/4/22 21:12
     */
    List<String> getAuthoritiesByUserId(String userId);

    /**
     * 查询用户列表
     * @param user 条件
     * @return java.util.List<com.kele.system.model.entity.User>
     * @author: Kele
     * @date 2023/4/25 21:55
     */
    List<User> getUserList(@Param("user") User user);

}
